public class Demo6 {
    public static boolean find(int arr[],int num) {
        for (int i = 0; i < arr.length;  i++) {
            if (arr[i] == num) {
                return true;
            }
        }
        return false;
    }
    public static void main(String[] args) {
        int arr[] = {1,2,5};
        boolean b = find(arr,5);
        if (b) {
            System.out.println("包含");
        }
        else {
            System.out.println("不包含");
        }
    }
}